var userStatus = [{
    id: 0,
    value: "未知",
    path: "/images/status/icon-test.png"
  },
  {
    id: 1,
    value: "开心",
    path: "/images/status/kaixin.png"
  },
  {
    id: 2,
    value: "不知道",
    path: "/images/status/buzhidao.png"
  },
  {
    id: 3,
    value: "得意",
    path: "/images/status/deyi.png"
  },

  {
    id: 4,
    value: "充实",
    path: "/images/status/chongshi.png"
  },
  {
    id: 5,
    value: "暖心",
    path: "/images/status/nuanxin.png"
  },
  {
    id: 6,
    value: "梦境",
    path: "/images/status/mengjing.png"
  },
  {
    id: 7,
    value: "疲惫",
    path: "/images/status/pibei.png"
  },
  {
    id: 8,
    value: "努力",
    path: "/images/status/nuli.png"
  },
  {
    id: 9,
    value: "逃避",
    path: "/images/status/taobi.png"
  },
  {
    id: 10,
    value: "委屈",
    path: "/images/status/weiqu.png"
  },
  {
    id: 11,
    value: "生气",
    path: "/images/status/shengqi.png"
  },
  {
    id: 12,
    value: "甜蜜",
    path: "/images/status/tianmi.png"
  },
  {
    id: 13,
    value: "惊喜",
    path: "/images/status/jingxi.png"
  },
  {
    id: 14,
    value: "难过",
    path: "/images/status/nanguo.png"
  }

];

function idToValue(id) {
  for (var index = 0; index < status.length; index++) {
    var info = status[index];
    if (info.id == id) {
      return info.value;
    }
  }
  return status[0].value;
};

function valueToId(value) {
  for (var index = 0; index < status.length; index++) {
    var info = status[index];
    if (info.value == value) {
      return info.id;
    }
  }
  return "";
}


module.exports = {
  userStatus,
  idToValue,
  valueToId
}